/*
 * Copyright (c) 2003-2005
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate.pojo;

import java.util.Date;

/**
 * @author Anatol Pomozov
 * @hibernate.class table="array_table"
 */
public class ArrayMapping {
    private int[] intArray;
    private ItemArray[] itemArray;
    private Date[] timeArray;

    public void setIntArray(int[] intArray) {
        this.intArray = intArray;
    }

    /**
     * @hibernate.array table="int_array"
     * @hibernate.key
     * @hibernate.key-column name="item_id" length="16"
     * @hibernate.list-index column="i"
     * @hibernate.element not-null="false" unique="false" type="string"
     * @hibernate.column name="element_column" length="56"
     */
    public int[] getIntArray() {
        return intArray;
    }

    public void setItemArray(ItemArray[] itemArray) {
        this.itemArray = itemArray;
    }

    /**
     * @hibernate.array element-class="org.xdoclet.plugin.hibernate.pojo.ItemArray"
     * where="section_where" check="i>=0"
     * @hibernate.key
     * @hibernate.key-column name="id"
     * @hibernate.index column="i"
     * @hibernate.many-to-many class="org.xdoclet.plugin.hibernate.pojo.ItemArray" fetch="select" not-found="ignore"
     * @hibernate.column name="item" length="36"
     */
    public ItemArray[] getItemArray() {
        return itemArray;
    }

    public void setTimeArray(Date[] timeArray) {
        this.timeArray = timeArray;
    }

    /**
     * @hibernate.array table="time_array"
     * @hibernate.key
     * @hibernate.key-column name="array_id" length="16"
     * @hibernate.index column="j"
     * @hibernate.element type="time" column="the_time" length="56"
     */
    public Date[] getTimeArray() {
        return timeArray;
    }
}